package com.fernfx.xingtan.main.contract;

import com.fernfx.xingtan.common.base.BaseFragment;
import com.fernfx.xingtan.common.base.BasePresenter;
import com.fernfx.xingtan.common.base.BaseView;
import com.fernfx.xingtan.common.network.IRequestCallback;
import com.fernfx.xingtan.main.entity.PersonEntity;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2018/8/2.
 * 通讯录 Contract
 */

public interface ContactsInfoContract {
    interface View {
        BaseFragment getFragment();

        void showContactsInfo();
    }

    interface Presenter {
        void init(ContactsInfoContract.View P);

        //加载通讯录列表Presenter
        void loadContactsInfo(Map<String,Object> requestArgsMap);

        List<PersonEntity> getContactsInfoList(String[] data);

        void detachView();
    }

    interface Model{
        void loadContactsInfo(Map<String, Object> requestArgsMap,IRequestCallback iRequestCallback);
    }
}
